
<?php

		if ( isset($_SESSION['auth'] ))
		{
?>
			<div id="summary-bloc">
				<b>Votre r&eacute;sum&eacute; </b><br />

				<div class="summaryed resume">
				<?php $sql = "SELECT resume FROM $table_name 
					  WHERE user_name='$_SESSION[logname]'";
					  $result = mysql_query($sql,$db);
					  $resume = mysql_fetch_array($result); 
					  echo $resume[0];
				?>
				</div>
			</div>
		 <?php }
		 else if ($_GET['pseudo']){ ?>
		 	<div id="summary-bloc">
				<b>Le r&eacute;sum&eacute; de <?php echo $_GET['pseudo']; ?></b><br />

				<div class="summaryed resume">
				<?php $sql = "SELECT resume FROM $table_name 
					  WHERE user_name='$_GET[pseudo]'";
					  $result = mysql_query($sql,$db);
					  $resume = mysql_fetch_array($result); 
					  echo $resume[0];
				?>
				</div>
			</div>
		 
		 <?php }
		 else { include 'erreur.php'; } ?>